﻿using System.Collections.Generic;

namespace Fast.DynamicApiController
{
    /// <summary>
    /// 辅助类
    /// </summary>
    internal static class Auxiliary
    {
        /// <summary>
        /// 
        /// </summary>
        static Auxiliary()
        {

            HttpVerbs = new Dictionary<string, string>()
            {
                ["add"] = "POST",
                ["create"] = "POST",
                ["post"] = "POST",

                ["get"] = "GET",
                ["find"] = "GET",
                ["fetch"] = "GET",
                ["query"] = "GET",

                ["update"] = "PUT",
                ["put"] = "PUT",

                ["delete"] = "DELETE",
                ["remove"] = "DELETE",
            };
        }

        /// <summary>
        /// HTTP 谓词
        /// </summary>
        public static Dictionary<string, string> HttpVerbs { get; set; }
    }
}
